#!/usr/bin/python

from distutils.core import setup
import py2exe
import shutil

py2exe_options = dict(
    ascii=True,  # Exclude encodings
    excludes=['_ssl', 
              'pyreadline', 'difflib', 'doctest', 'locale',
              'optparse', 'pickle', 'calendar'], 
    dll_excludes=['msvcr71.dll'],  # Exclude msvcr71
    compressed=True,  # Compress library.zip
    )

setup(name="ptz",
      version="2.0",
      description = "Pan/tilt/zoom Platform",
      author="Jeremy Mortis",
      author_email="mortis@tansay.ca",
      url="http://tansay.ca",
      windows=[{"script" : "ptz.py"
                ,'icon_resources':[(0,"ptz.ico")]
                }
               ],
      options={'p2exe': py2exe_options},
      ) 

shutil.copy("ptz.ico", "dist")
shutil.copy("gpl.txt", "dist")
shutil.copy("version.txt", "dist")
